<?$this->load->view('admin/header.tpl');?>
	<div id="wrap" class="lw clearfix ab">
		<?if($success):?><div class="success"><?=$success?></div><?endif?>
		<div class="form-error"><?=$error?></div>
		<h2 class="menu2 clearfix">
			<span>专业知识列表</span>
			<a class="" href="/admin/know/action">添加专业知识文章</a>
		</h2>
		<?if($know):?>
		<table class="discuz">
			<tr>
				<th class="table-left">专业知识标题</th>
				<th>发布状态</th>
				<th>作者</th>
				<th>时间</th>
				<th>操作</th>
			</tr>
			<?foreach($know as $t):?>
			<tr>
				<td class="table-left"><a href="/know/show/<?=$t->id?>"><?=$t->title?></a></td>
				<td><?if($t->status == 0)echo '没有发布';else echo '已发布';?></td>
				<td><?=$t->uname?></td>
				<td><?=$t->time?></td>
				<td>[<a href="/admin/know/action/<?=$t->id?>">编辑</a>]</td>
			</tr>
			<?endforeach?>
		</table>
		<p>共<?=$num?>个专业知识</p>
		<?else:?>
			<p>还没有专业知识</p>
		<?endif?>

		<?php echo $page;?>
	
	</div>
<?$this->load->view('footer.tpl');?>